package file.day9_16;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File dir = new File("./demo");
        if(dir.exists()){
            System.out.println("该目录已经存在了");
        }else {
            dir.mkdir();//创建目录
            System.out.println("该目录已创建");
        }
    }
}
